#ifndef LOADLASTDATA_H
#define LOADLASTDATA_H

#include <QtGui>
#include <QtNetwork>
#include "C:\Projects\VisualStudio\MFC\vipiska.h"
#include "ui_loadlastdata.h"
#include "choosedate.h"

class loadLastData : public QDialog
{
	Q_OBJECT

public:
	loadLastData(QWidget *parent, int operatorName);
	~loadLastData();

	vipiska item;

private:
	Ui::loadLastData ui;

	QTcpSocket *tcpSocket;
	QDataStream in;
	QList <int> listData;
	QString address;
	int port;
	int author;
	QDate date;

	void readConf();
	void connectToServer();

private slots:
	void loadData();
	void getListData();
};

#endif // LOADLASTDATA_H
